
package com.cbwl.eoas.cms.model.eoas;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;

import com.cbwl.eoas.common.base.CommonBean;

/**
 * 
 * <p>[描述信息：说明类的基本功能]</p>
 *
 * @author 虞云波 - yuyunbo@3856.cc
 * @version 1.0 Created on 2017年10月20日 下午5:19:53
 */
public class AppMailSendContentDTO extends CommonBean {


	private static final long serialVersionUID = -1087696997347005734L;

	private java.lang.Long amscId;
	
	private java.lang.Long amsrId;
	@Length(max=65535)
	private java.lang.String amscSendContent;

	
	public void setAmscId(java.lang.Long value) {
		this.amscId = value;
	}
	
	public java.lang.Long getAmscId() {
		return this.amscId;
	}
	
	public void setAmsrId(java.lang.Long value) {
		this.amsrId = value;
	}
	
	public java.lang.Long getAmsrId() {
		return this.amsrId;
	}
	
	public void setAmscSendContent(java.lang.String value) {
		this.amscSendContent = value;
	}
	
	public java.lang.String getAmscSendContent() {
		return this.amscSendContent;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("AmscId",getAmscId())
			.append("AmsrId",getAmsrId())
			.append("AmscSendContent",getAmscSendContent())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getAmscId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof AppMailSendContentDTO == false)
		{ 
			return false;
		}
		if(this == obj) {
			return true;
		}
		AppMailSendContentDTO other = (AppMailSendContentDTO)obj;
		return new EqualsBuilder()
			.append(getAmscId(),other.getAmscId())
			.isEquals();
	}
}

